package entity_controllers.fieldcontrollers;

import ie.FieldBoard;
import ie.PlayerBoard;
import ie.Shaker;
import dto.Field;
import dto.Player;
import dto.PropertyField;

public class BreweryController extends PropertyController {
	
	private int diceSum;
	
	@Override
	public void execute(Player player, Field field, FieldBoard fieldBoard, PlayerBoard playerBoard, Shaker shaker) {
		
		this.diceSum = shaker.getDiceSum();
		
		super.execute(player, field, fieldBoard, playerBoard, shaker);
	}

	@Override
	public int getRent(PropertyField property) {
		return this.diceSum * property.getRent();
	}

}